package models.crawlers.common;

import java.util.Date;

public class SessionParams {
    public int sessionId;
    public int userId;
    public String crawlerName;
    public Date addedDate;
    public String siteInfo;

    public SessionParams(int sessionId, int userId, String crawlerName) {
        this.sessionId = sessionId;
        this.userId = userId;
        this.crawlerName = crawlerName;
        
    }

    public String getSessionKey(){
        String sessionKey = String.format("crawler_%1$s", sessionId);
        return sessionKey;
    }

}
